package com.shop.entity;
/*CREATE TABLE merchantinfor (
   `id` BIGINT(16) NOT NULL auto_increment PRIMARY KEY COMMENT '会员编号（主键）',
   `name` VARCHAR(16) NOT NULL COMMENT '商店名称',
   `merchant_id` BIGINT(16) COMMENT '商户编号（外键）',
   `phone_number` VARCHAR(11),
   `trueName` VARCHAR(20),
   `sex` CHAR(2),
   `email` VARCHAR(32),
   foreign key (`merchant_id`) references merchant(`id`)
)ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;*/
/**
 * 
 * <b>商户信息<b>
 * @author 威 
 * <br>2018年1月2日 下午2:16:58 
 */
public class MerchantInfor {
	private Integer id ;
	private String name ;
	private Merchant merchant ; 	//商户外键 1:1  双向关联
	private Integer integral ;
	private String phone_number ;
	private String trueName ;
	private String sex ;
	private String email ;
	
	public Integer getIntegral() {
		return integral;
	}
	public void setIntegral(Integer integral) {
		this.integral = integral;
	}
	public String getPhone_number() {
		return phone_number;
	}
	public void setPhone_number(String phone_number) {
		this.phone_number = phone_number;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Merchant getMerchant() {
		return merchant;
	}
	public void setMerchant(Merchant merchant) {
		this.merchant = merchant;
	}
	public String getTrueName() {
		return trueName;
	}
	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String toString(){
		return "Merchant[id="+id+
				",name="+name+
				",merchantId="+merchant.getId()+
				",trueName="+trueName+
				",sex="+sex+
				",email="+email+
				",phone_number="+phone_number+
				",integral="+integral+
				"]" ;
	}
}
